/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconOrder: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M800.0512 928H223.9488A96 96 0 0 1 128 832.0512V192.1536c0-52.992 43.008-96 95.9488-96h575.8976c52.992 0 96 43.008 96 96V832a96 96 0 0 1-95.7952 95.9488z m-576.1024-768a32.1536 32.1536 0 0 0-32 31.9488v639.8976c0 17.7152 14.4896 32 32 32h575.8976a31.9488 31.9488 0 0 0 32-32V192a32.0512 32.0512 0 0 0-32-32H223.9488z"
        fill={getIconColor(color, 0, '#333333')}
      />
      <path
        d="M640.9216 544.768H287.7952a31.9488 31.9488 0 1 1 0-64h353.1264a31.9488 31.9488 0 1 1 0 64zM734.8224 735.5392H287.5904a31.9488 31.9488 0 1 1 0-64h447.232a31.9488 31.9488 0 1 1 0 64z"
        fill={getIconColor(color, 1, '#333333')}
      />
      <path
        d="M255.7952 305.3056a48.0256 48.0256 0 1 0 96 0 48.0256 48.0256 0 0 0-96 0zM463.0528 305.3056a48.0256 48.0256 0 1 0 96.0512 0 48.0256 48.0256 0 0 0-96.0512 0zM671.232 305.3056a48.0256 48.0256 0 1 0 96 0 48.0256 48.0256 0 0 0-96.0512 0z"
        fill={getIconColor(color, 2, '#333333')}
      />
    </svg>
  );
};

IconOrder.defaultProps = {
  size: 22,
};

export default IconOrder;
